package com.example.s03_mybatis;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
// SpringBootApplication中的CompoentScan默认不会搜索mapper注解
// 需要添加MapperScan对指定位置，扫描mapper
@MapperScan("com.example.s03_mybatis.mapper")
public class S03MybatisApplication {

    public static void main(String[] args) {
        SpringApplication.run(S03MybatisApplication.class, args);
    }

}
